
body{
	width: 100vw;
	/* background-color: #f2f2f2f2; */
}
a{
	/* 清楚a标签的下划线 */
	text-decoration: none;
	color: #000;
}
.navbar{
	width: 100%;
	height: 170px;
	background: url(../../images/qian/nav/bj.jpg) repeat-x;
	background-size: 100%;
	/* 盒子阴影 */
	box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.navbar .title {
	position: absolute;
	width: 240px;
	height: 80px;
	/* border-radius: 50%; */
	/* box-shadow: 1px 1px 3px 3px rgba(139, 143, 143, 0.3); */
	background: url(../../images/qian/nav/logo.png) no-repeat;
	background-size: 100%;
	left: 10%;
	top: 30px;
}
.navbar .title::before {
	content: '腾跃动产融资监管平台';
	font-size: 58px;
	font-weight: 900;
	display: block;
	width: 600px;
	position: relative;
	left: 300px;
	top: 10px;
	font-family:'Courier New', Courier, monospace;
	color: rgb(255, 255, 255);
}

.sos {
	position: absolute;
	top: 10px;	
	right: -450%;
	width: 400px;
}

.sos input {
	margin: 2%;
	border: none;
	font-size: 14px;
}
.sos input:first-child {
	width: 200px;
	height: 17px;
	border-radius: 3px;
	outline: none;
	padding: 2%;
	background: rgba(237, 238, 238, 0.5) url(../../images/qian/nav/sos.png) no-repeat right;
}
.sos input[type="button"]{
	background: #0088FF;
	width: 55px;
	height: 30px;
	color: #fff;
	box-sizing: border-box;
	text-align: center;
	line-height: 25px;
	border-radius: 8px;
	cursor: pointer;
}
.navbar .nav{
	width: 1200px;
	height: 100%;
	/* 让元素自动水平居中 */
	margin: 0 auto;
}
.navbar .nav ul{
	/* 相对定位 */
	position: relative;
	/* 弹性布局 */
	display: flex;
	/* 让元素平均分配宽度 */
	justify-content: space-around;
	width: 100%;
	top: 130px;
	z-index: 2;
}
.navbar .nav ul > li{
	width: 100%;
	height: 30px;
}
.navbar .nav ul > li > a{
	/* 因为a元素是行内元素 必须将其转为行内块或者块级才能设置宽度和高度*/
	display: block;
	width: 100%;
	height: 32px;
	font-size: 28px;
	text-align: center;
	color: rgb(255, 255, 255);
}
.navbar .nav ul > li ol{
	width: 100%;
	position: relative;
	top: 5px;
	background-color: #fff;
	box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
	/* 让盒子先沿着y轴缩放到0 也就是隐藏了 */
	transform: scaleY(0);
	/* 需要酱盒子从上面滑动下来.设置一下缩放的中心点即可 设置到最上面的中间位置 */
	transform-origin: 50% 0;
	/* 设置过度 */
	transition: all 0.5s;
}
.navbar .nav ul > li ol li{
	height: 70px;
	border-bottom: 1px solid rgb(245,245,245);
}
.navbar .nav ul li ol li a{
	display: block;
	width: 100%;
	line-height: 70px;
	text-align: center;
}
.navbar .nav ul > li ol li:hover{
	background-color: rgba(0, 0, 0, 0.03);
}
.navbar .nav ul > li:hover ol {
	transform: scaleY(1);
}
/* 设置线条 */
.navbar .nav ul .underline{
	position: absolute;
	bottom: -11px;
	left: 0;
	width: 240px;
	height: 7px;
	/* 设置一下盒子的左上角和右上角的圆角 */
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	background-color: #99aab6;
	transition: all .5s;
	/* 隐藏元素 */
	pointer-events: none;
}
.navbar .nav ul .underline::before{
	content: "";
	/* 利用:before伪元素设置三角 */
	position: absolute;
	top: -7px;
	/* clac方法自动计算数值 让盒子居中 */
	left: calc(50% - 9px);
	width: 15px;
	height: 8px;
	/* inherit可以继承父元素的1属性值 */
	background-color: inherit;
	/* 生成了一个三角形 polygon这个属性只需要提供最少三个点 就可以将三个点连起来 */
	clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.navbar .nav ul > li:nth-child(2):hover ~ .underline{
	left: 240px;
} 
.navbar .nav ul > li:nth-child(3):hover ~ .underline{
	left: 480px;
} 
.navbar .nav ul > li:nth-child(4):hover ~ .underline{
	left: 720px;
} 
.navbar .nav ul > li:nth-child(5):hover ~ .underline{
	left: 960px;
} 